# -*- coding: utf-8 -*-
"""
-------------------------------------------------
   File Name：     db
   Description :
   Author :       zm.z
   date：          2020/2/3
-------------------------------------------------
   Change Activity:
                   2020/2/3:
-------------------------------------------------
"""
__author__ = 'zm.z'

from sqlalchemy.engine import create_engine
from sqlalchemy.orm import sessionmaker

DNS = "mysql+pymysql://admin:PD2_SoA!Fb21BaSCC@47.107.41.209:3306/spider_tmall"
# DNS = "mysql+pymysql://python_spider:Lx123456@pc-wz9uddu7e0ro46dt6.mysql.polardb.rds.aliyuncs.com:3306/spider_tmall"
engine = create_engine(DNS)
session = sessionmaker(bind=engine)
